package com.exampl.springstack.common;

/**
 * 常量
 * @author qiangfanghao
 * @date
 */
public class GlobalConst {

    /** 可见 */
    public static final Integer VISIBLE = 1;
    /** 不可见 */
    public static final Integer INVISIBLE = -1;
    /** 可用 */
    public static final Integer ENABLED = 1;
    /** 禁用 */
    public static final Integer DISABLED = -1;
    /** 锁定 */
    public static final Integer LOCKED = 0;
    /** 可写|可改 */
    public static final Integer WRITABLE = 1;
    /** 只读|不可改 */
    public static final Integer READONLY = -1;

    /** 本地缓存 sysUser 当前使用 token key */
    public static final String CURRENT_SYSUSER_TOKEN_KEY = "currentSysUserToken";

    /** token 认证头 */
    public static final String AUTHORIZATION = "Authorization";

    /** 授权秘钥 */
    public static final String JWT_KEY = "sunniwellKey";

    /** 授权前缀  后面空格一定要存留 */
    public static final String AUTH_BEARER_PREFIX = "Bearer ";

    /** 本地缓存  Authorities key  角色权限*/
    public static final String AUTHORITIED_KEY = "AuthoritiesRole";

    /** http请求头 */
    public static final String HTTP_HEAD = "http://";
    /** https 请求头 */
    public static final String HTTPS_HEAD = "https://";


}
